package _14综合继承案例_超级玛丽游戏;

public class SuperMario extends Role{

    //总得分totalScore
    private int totalScore;

    //发射shoot,踩踏stepOn

    public void shoot(){
        System.out.println(super.getName()+"正在发射子弹");
    }

    public void stepOn(){
        System.out.println(super.getName()+"跳跃踩踏");
    }

    public SuperMario() {

    }

    public SuperMario(String name, String imageName, int totalScore) {
        super(name, imageName);
        this.totalScore = totalScore;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }
}
